

<extend name="./Application/Admin/View/base.html" />
<block name="title"><title><?php echo C(APP_NAME);?>PC端管理</title></block>
<block name="stylesheets">
<link href="__PUBLIC__/assets/css/select2.css" rel="stylesheet">

</block>
<block name="stylecss">
<style type='text/css'>
    table tr td{
        width: 80%;
    }
    table tr th{
        width: 16%;
        text-align: center;
        vertical-align: middle!important;
    }

</style>
</block>

<block name="smallmenu">
<ul class="breadcrumb">
	<li>
		<i class="ace-icon fa fa-home home-icon"></i>
		<a href="{:U('Index/index')}">主页</a>
	</li>
    <li>
		<a href="{:U('User/index')}">考生列表</a>
	</li>
	<li class="active">修改考生信息</li>
</ul><!-- /.breadcrumb -->

<!-- #section:basics/content.searchbox -->
<div class="nav-search" id="nav-search"></div><!-- /.nav-search -->
</block>
<block name="content">

<form action="__CONTROLLER__/user_edit" method='post' id='myformedit' class="myformedit" enctype="multipart/form-data">
<input type="hidden" id='user_ids' name='user_id' value="{$user_arr.user_id}">
<input type="hidden" name='action' value="user_edit_action">
<div class="row" style="margin-bottom:7px">
    <div class="col-xs-12"><span class="label label-warning arrowed"><i class="ace-icon fa fa-user bigger-120"></i> 基本信息</span></div>
</div>

<table class="table table-striped table-bordered table-hover" >
    <tr>
        <th>头像</th>
        <td>
            <div class="nfile_imgbox" >
                <input type="file" class="nfile" id="file_upload" name="avatar" />
                <?php if (!empty($user_arr['user_avatar'])) { ?>
                <img src="{$user_arr.user_avatar}" id="preview">
                <?php }else{ ?>
                <img src="__PUBLIC__/assets/images/addfile.png" id="preview">
                <?php } ?>
                <a class="nimg_style">+<img src=""> </a>
            </div>
        </td>
    </tr>
    <tr>
        <th>昵称</th>
        <td>

               <input type="text" name='user_nickname' value="{$user_arr.user_nickname}" placeholder="{$user_arr.user_nickname}" class="col-xs-6 nickname" datatype="s2-16" errormsg="昵称至少2个字符,最多16个字符！" >

        	<span class="Validform_checktip">昵称为2~18个字符</span>
        	</td>
    </tr>
    <tr>
        <th>手机号</th>
        <td><input type="text" id="user_edit_phone" name='user_phone' value="{$user_arr.user_phone}" placeholder="{$user_arr.user_phone}" class="col-xs-6" maxlength="11" required data-msg-required="不能为空">
        <span class="Validform_checktip">请输入11位手机号</span></td>
    </tr>
    <tr>
        <th>邮箱</th>
        <td><input type="text" name='user_email' value="{$user_arr.user_email}" placeholder="{$user_arr.user_email}" class="col-xs-6"></td>
    </tr>
</table>

<div class="row" style="margin-bottom:7px">
    <div class="col-xs-12"><span class="label label-success arrowed"><i class="ace-icon fa fa-user bigger-120"></i> 详细信息</span></div>
</div>
<table class="table table-striped table-bordered table-hover" >
    <tr>
        <th>姓名</th>
        <td><input type="text" name='user_name' value="{$user_arr.user_name}" placeholder="{$user_arr.user_name}" class="col-xs-6 nname">
        <span class="Validform_checktip">必填项</span>
        </td>
    </tr>
    <tr>
        <th>性别</th>
        <td><if condition="($user_arr.user_sex eq 1)">
            <input type="radio" name="user_sex" id="" value="1" checked="checked">男&nbsp;&nbsp;
            <input type="radio" name="user_sex" id="" value="2">女
        <else />
            <input type="radio" name="user_sex" id="" value="1">男&nbsp;&nbsp;
            <input type="radio" name="user_sex" id="" value="2" checked="checked">女
        </if></td>
    </tr>
    <tr>
        <th>生日</th>
        <td><div class="input-group col-xs-6">
            <input class="form-control date-picker" type="datetime" data-date-format="yyyy-mm-dd" name='user_birthday' value="{$user_arr.user_birthday}">
            <span class="input-group-addon">
                <i class="fa fa-calendar bigger-110"></i>
            </span>
        </div></td>
    </tr>
    <tr>
        <th>身份证号码</th>
        <td><input type="text" name='user_idcard' value="{$user_arr.user_idcard}" placeholder="{$user_arr.user_idcard}" class="col-xs-6 ninputxt" >
        <span class="Validform_checktip">必填项</span></td>
    </tr>
    <tr>
        <th>城市</th>
        <td><select name="user_city" id="" class="col-xs-6">
            <option value="0" >-请选择-</option>
            <?php foreach ($city_arr as $v): ?>
                <option value="{$v.city_id}" <?php if ($v['city_id'] == $user_arr['user_city']): ?>selected<?php endif ?>>{$v.city_name}</option>
            <?php endforeach ?>
        </select></td>
    </tr>
</table>

<div class="row" style="margin-bottom:7px">
    <div class="col-xs-12"><span class="label label-pink arrowed"><i class="ace-icon fa fa-user bigger-120"></i> 认证考试资格</span></div>
</div>
<table class="table table-striped table-bordered table-hover" >
    <tr>
        <th>认证身份</th>
        <td><select name="user_auth" id=""class="col-xs-6 ">
            <option value="" class="n_select_renz">-请选择-</option>
            <option value="1" <?php if ($user_arr['user_auth'] == 1): ?>selected<?php endif ?>>未提交资料</option>
            <option value="2" <?php if ($user_arr['user_auth'] == 2): ?>selected<?php endif ?>>提交待审核</option>
            <option value="3" <?php if ($user_arr['user_auth'] == 3): ?>selected<?php endif ?>>审核成功</option>
            <option value="4" <?php if ($user_arr['user_auth'] == 4): ?>selected<?php endif ?>>审核未通过</option>
        </select><span class="Validform_checktip">必选项</span></td>
    </tr>
    <tr>
        <td colspan="2">
            <button type="submit" class="btn btn-primary n_btn_submit" >提交</button> <span class="btn" onClick="location.href='{:U('User/index')}'">返回</span>
        </td>
    </tr>
</table>

</form>
</block>
<block name="scripts">
<script src="__PUBLIC__/assets/js/select2.js"></script>
</block>
<block name="jscript">
<script script="text/javascript">
    $(function(){
        $('#menu_user').addClass('active open');
        $('#menu_user_list').addClass('active');
        $('.date-picker').datepicker({
        autoclose: true,
        todayHighlight: true
		})
    });
</script>

</block>